﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RecordBill.Dtos
{   // 定义实体类
    [Table("Transactions")]
    public class Transaction
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }
        /// <summary>
        /// 交易时间
        /// </summary>
        public DateTime TradeTime { get; set; }
        /// <summary>
        /// 交易类型
        /// </summary>
        public string TradeType { get; set; } = string.Empty;
        /// <summary>
        /// 交易对方
        /// </summary>
        public string Counterparty { get; set; } = string.Empty;
        public string Goods { get; set; } = string.Empty;
        public string IncomeOrExpense { get; set; } = string.Empty;
        public decimal Amount { get; set; }
        public string PaymentMethod { get; set; } = string.Empty;
        public string Status { get; set; } = string.Empty;
        public string TransactionId { get; set; } = string.Empty;
        public string MerchantOrderId { get; set; } = string.Empty;
        public string Remark { get; set; } = string.Empty;

        /// <summary>
        /// 统计类型
        /// </summary>
        public string StatisticsType { get; set; }
    }
}
